package com.aaa.service;

import com.aaa.entity.Dept;
import com.aaa.entity.PageSort;
import com.aaa.util.Enum01;
import com.github.pagehelper.Page;

import java.util.List;

public interface DeptService {

    /**
    * @Author: WTH
    * @Description: 查询
    * @Date:2022-07-01 09:54
    * @Params:
    */
    Page<Dept> selectDept(PageSort pageSort);
    List<Dept> selectDeptFirst();

    /**
    * @Author: WTH
    * @Description: 新增
    * @Date:2022-07-01 09:54
    * @Params:
    */
    Enum01 addDept(Dept dept);

    /**
    * @Author: WTH
    * @Description: 批量删除
    * @Date:2022-07-01 09:54
    * @Params:
    */
    boolean deleteDept(String dept_id);

    /**
    * @Author: WTH
    * @Description: 修改
    * @Date:2022-07-01 09:54
    * @Params:
    */
    Enum01 updateDept(Dept dept);


    /**
    * @Author: WTH
    * @Description: 单条删除，删除校验
    * @Date:2022-07-01 09:54
    * @Params:
    */
    Enum01 deleteDeptByid(Integer dept_id);

    /**
    * @Author: WTH
    * @Description: 部门名称重复性校验
    * @Date:2022-07-08 15:19
    * @Params:  * @param null
    * @return:
    */
    boolean selectDeptName(Dept dept_name);
}
